package com.bjb.vr.common.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bjb.vr.common.ao.ResCusContentAuthorityAo;
import com.bjb.vr.common.dto.ResContentAuthority;
import com.bjb.vr.common.mapper.ResContentAuthorityMapper;
import com.bjb.vr.common.vo.ResCusContentAuthorityContVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author admin
* @description 针对表【res_content_authority(课程内容授权可用日期表)】的数据库操作Service
* @createDate 2022-06-29 14:43:35
*/
@Service
public class ResContentAuthorityService extends ServiceImpl<ResContentAuthorityMapper, ResContentAuthority> {

    @Autowired
    ResContentAuthorityMapper resContentAuthorityMapper;

    public List<String> getAuthorityUdidList(ResCusContentAuthorityAo resCusContentAuthorityAo){
        return resContentAuthorityMapper.getAuthorityUdidList(resCusContentAuthorityAo.getId());
    }

    public List<ResCusContentAuthorityContVo> getAuthorityContentVoList(ResCusContentAuthorityAo resCusContentAuthorityAo){
        return resContentAuthorityMapper.getAuthorityContentVoList(resCusContentAuthorityAo.getId());
    }
}
